package com.easy.easy.dao;

import com.easy.easy.bean.Admin;
import com.easy.easy.bean.Category;
import com.easy.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminDao {
    int add(@Param("admin") Admin admin);
    int delete(@Param("adminid") int adminid);
    int edit(@Param("admin") Admin admin);
    List<Admin> getList(@Param("page") Page page, @Param("text")String text);
    Admin getAdminByAdminName(@Param("adminname") String adminname);
    int getCount(@Param("text") String text);
}
